for i in range(1, 10):
    for j in range(1, i+1):
        c = i*j
        if i==j:
            print(j, "*", i, "=", c, sep='')
        else:
            print(j, "*", i, "=", c, sep='', end='\t')
